#include <rtthread.h>
#include "Task_start.h"
long task_start(int argc, char**argv)
{
    int pin, value;
    if(argc < 2)
    {
        return -1;
    }
    if(!rt_strcmp(argv[1],"start"))
    {
        Start_Task_Create();
    }
    if(!rt_strcmp(argv[1],"stop"))
    {
        Start_Task_stop();
    }
    if(!rt_strcmp(argv[1],"resume"))
    {
        Start_Task_resume();
    }
    if(!rt_strcmp(argv[1],"del"))
    {
        Start_Task_del();
    }
    return 0;
}
FINSH_FUNCTION_EXPORT(task_start, task_start task_start: <num|value>);
MSH_CMD_EXPORT(task_start, task_start task_start: <num|value>);


